package com.jfs.zlk;
import com.jfs.zlk.properties.ZlkMediaServerProperties;
import com.jfs.zlk.provider.ZlkMediaServerAbilityProvider;
import lombok.AllArgsConstructor;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Description zlk流媒体服务器信息初始化器
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/7/27
 */
@Configuration
@EnableConfigurationProperties(value = ZlkMediaServerProperties.class)
@AllArgsConstructor
public class ZlkMediaServerInitRunner  implements ApplicationRunner {
    private final ZlkMediaServerAbilityProvider zlkMediaServerAbilityProvider;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        zlkMediaServerAbilityProvider.initRangeProts();
    }
}
